home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo2.zoo / demo / ex / ex_data.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-31  |  2.9 KB  |  100 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef lint
  8. static char *sccsid = "@(#)ex_data.c    7.6 (Berkeley) 3/9/87; 1.2 (Bellcore)    87/04/24";
  9. #endif not lint
  10.  
  11. #include "ex.h"
  12. #include "ex_tty.h"
  13.  
  14. /*
  15.  * Initialization of option values.
  16.  * The option #defines in ex_vars.h are made
  17.  * from this file by the script makeoptions.
  18.  *
  19.  * These initializations are done char by char instead of as strings
  20.  * to confuse xstr so it will leave them alone.
  21.  */
  22. char    direct[ONMSZ] =
  23. #ifdef vms
  24.     {'t', 'm', 'p', ':'}; 
  25. #else
  26.     {'/', 't', 'm', 'p'}; 
  27. #endif
  28. char    paragraphs[ONMSZ] = {
  29.     'I', 'P', 'L', 'P', 'P', 'P', 'Q', 'P',        /* -ms macros */
  30.     'P', ' ', 'L', 'I',                /* -mm macros */
  31.     'p', 'p', 'l', 'p', 'i', 'p',            /* -me macros */
  32.     'b', 'p'                    /* bare nroff */
  33. };
  34. char    sections[ONMSZ] = {
  35.     'N', 'H', 'S', 'H',                /* -ms macros */
  36.     'H', ' ', 'H', 'U',                /* -mm macros */
  37.     'n', 'h', 's', 'h'                /* -me macros */
  38. };
  39. char    shell[ONMSZ] =
  40.     { '/', 'b', 'i', 'n', '/', 's', 'h' };
  41. char    tags[ONMSZ] = {
  42.     't', 'a', 'g', 's', ' ',
  43.     '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 't', 'a', 'g', 's'
  44. };
  45. char    ttytype[ONMSZ] =
  46.     { 'd', 'u', 'm', 'b' };
  47.  
  48. short    COLUMNS = 80;
  49. short    LINES = 24;
  50.  
  51. struct    option options[NOPTS + 1] = {
  52.     "autoindent",    "ai",    ONOFF,        0,    0,    0,
  53.     "autoprint",    "ap",    ONOFF,        1,    1,    0,
  54.     "autowrite",    "aw",    ONOFF,        0,    0,    0,
  55.     "beautify",    "bf",    ONOFF,        0,    0,    0,
  56.     "directory",    "dir",    STRING,        0,    0,    direct,
  57.     "edcompatible",    "ed",    ONOFF,        0,    0,    0,
  58.     "errorbells",    "eb",    ONOFF,        0,    0,    0,
  59.     "hardtabs",    "ht",    NUMERIC,    8,    8,    0,
  60.     "ignorecase",    "ic",    ONOFF,        0,    0,    0,
  61.     "font",        "fo", NUMERIC, 0, 0, 0,
  62. #ifndef    UNIX_SBRK
  63.     "linelimit",    "ll",    NUMERIC,    2000,    2000,    0,
  64. #endif
  65.     "lisp",        0,    ONOFF,        0,    0,    0,
  66.     "list",        0,    ONOFF,        0,    0,    0,
  67.     "magic",    0,    ONOFF,        1,    1,    0,
  68.     "mesg",        0,    ONOFF,        1,    1,    0,
  69.     "modeline",    0,    ONOFF,        0,    0,    0,
  70.     "number",    "nu",    ONOFF,        0,    0,    0,
  71.     "open",        0,    ONOFF,        1,    1,    0,
  72.     "optimize",    "opt",    ONOFF,        0,    0,    0,
  73.     "paragraphs",    "para",    STRING,        0,    0,    paragraphs,
  74.     "prompt",    0,    ONOFF,        1,    1,    0,
  75.     "readonly",    "ro",    ONOFF,        0,    0,    0,
  76.     "redraw",    0,    ONOFF,        0,    0,    0,
  77.     "remap",    0,    ONOFF,        1,    1,    0,
  78.     "report",    0,    NUMERIC,    5,    5,    0,
  79.     "scroll",    "scr",    NUMERIC,    12,    12,    0,
  80.     "sections",    "sect",    STRING,        0,    0,    sections,
  81.     "shell",    "sh",    STRING,        0,    0,    shell,
  82.     "shiftwidth",    "sw",    NUMERIC,    TABS,    TABS,    0,
  83.     "showmatch",    "sm",    ONOFF,        0,    0,    0,
  84.     "slowopen",    "slow",    ONOFF,        0,    0,    0,
  85.     "sourceany",    0,    ONOFF,        0,    0,    0,
  86.     "tabstop",    "ts",    NUMERIC,    TABS,    TABS,    0,
  87.     "taglength",    "tl",    NUMERIC,    0,    0,    0,
  88.     "tags",        "tag",    STRING,        0,    0,    tags,
  89.     "term",        0,    OTERM,        0,    0,    ttytype,
  90.     "terse",    0,    ONOFF,        0,    0,    0,
  91.     "timeout",    "to",    ONOFF,        1,    1,    0,
  92.     "ttytype",    "tty",    OTERM,        0,    0,    ttytype,
  93.     "warn",        0,    ONOFF,        1,    1,    0,
  94.     "window",    "wi",    NUMERIC,    23,    23,    0,
  95.     "wrapscan",    "ws",    ONOFF,        1,    1,    0,
  96.     "wrapmargin",    "wm",    NUMERIC,    0,    0,    0,
  97.     "writeany",    "wa",    ONOFF,        0,    0,    0,
  98.     0,        0,    0,        0,    0,    0,
  99. };
  100.